
//
//  HJSecuritySettingsVC.m
//  project
//
//  Created by jc on 2019/5/6.
//  Copyright © 2019 健健. All rights reserved.
//

#import "HJSecuritySettingsVC.h"
#import "HJSettingVC.h"

@interface HJSecuritySettingsVC ()
@property (nonatomic,strong) NSArray * titleArray;

@end
static NSString *const identifier = @"SecuritySettingsCell";

@implementation HJSecuritySettingsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navTitle =@"安全设置";
}

-(void)configTableView {
    self.tableViewStyle = UITableViewStylePlain;
    [super configTableView];
    self.tableView.contentInset = UIEdgeInsetsMake(4, 0, 0, 0);
    self.tableView.rowHeight = 48;
}
-(NSArray *)titleArray {
    if (!_titleArray) {
        _titleArray = @[@"修改支付密码",@"忘记支付密码"];
    }
    return _titleArray;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.titleArray.count;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    HJSettingCell * cell = [tableView cellForRowAtIndexPath:indexPath];
    if (!cell) {
        cell = [[HJSettingCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
    }
    cell.rightImageView.hidden = YES;
    [cell loadData:self.titleArray[indexPath.row]];
    
    return cell;
}



@end
